<%--
  Created by IntelliJ IDEA.
  User: 段路钪
  Date: 2022/7/30
  Time: 1:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
文件上传是 表单的提交方式必须为post 提交，而且需要添加enctype="multipart/form-data"
<form action="login.do" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td><fmt:message key="USERNAME"></fmt:message></td>
            <td><input type="text" name="user"></td>
        </tr>
        <tr>
            <td><fmt:message key="PWD"></fmt:message> </td>
            <td><input type="password" name="pwd"></td>
        </tr>
        <tr>
            <td><fmt:message key="FILE"></fmt:message> </td>
            <td><input type="file" name="pic"></td>
        </tr>
        <tr>
            <td colspan="2"></td>
            <td><input type="submit" value="登录"></td>
        </tr>
    </table>

</form>
</body>
</html>
